cb9dd8c1b020c51a56e7ea8b2bc62b7eaba39c7b,jaxrs-clients/src/test/java/feign/TextDelegateDecoderTest.java,TextDelegateDecoderTest,testUsesDelegateWithNonTextContentType,#,125

Before Change


    @Test
    public void testUsesDelegateWithNonTextContentType() throws Exception {
        headers.put(HttpHeaders.CONTENT_TYPE, ImmutableSet.of(MediaType.APPLICATION_JSON));
        when(delegate.decode((Response) any(), (Type) any())).thenReturn(DELEGATE_RESPONSE);
        Response response = Response.create(200, "OK", headers, new byte[0]);
        Object decodedObject = textDelegateDecoder.decode(response, String.class);

After Change


    @Test
    public void testUsesDelegateWithNonTextContentType() throws Exception {
        headers.put(HttpHeaders.CONTENT_TYPE, ImmutableSet.of(MediaType.APPLICATION_JSON));
        when(delegate.decode(any(), any())).thenReturn(DELEGATE_RESPONSE);
        Response response = Response.create(200, "OK", headers, new byte[0]);
        Object decodedObject = textDelegateDecoder.decode(response, String.class);